package com.mbc.hr.entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_AttendancePenalty")
@NamedQueries({
	@NamedQuery(name="AttendancePenalty.findAll", query="SELECT ap FROM AttendancePenalty ap")
})
public class AttendancePenalty implements Serializable {
	@Id
	private long attendancePenaltyID;
	private String penaltyCode;
	private String description;
	private long createdBy;
	private Date createdDate;
	private Long modifiedBy;
	private Date modifiedDate;
	private int absencePeriod;
	private int count;
	
	@Transient
	private List<AttendancePenaltyDetail> details;
	@Transient
	private List<EarlyDeparturePenaltyDetail> earlydetails;
	
	public List<AttendancePenaltyDetail> getDetails() {
		return details;
	}
	public void setDetails(List<AttendancePenaltyDetail> details) {
		this.details = details;
	}
	public List<EarlyDeparturePenaltyDetail> getEarlydetails() {
		return earlydetails;
	}
	public void setEarlydetails(List<EarlyDeparturePenaltyDetail> earlydetails) {
		this.earlydetails = earlydetails;
	}
	public String getPenaltyCode() {
		return penaltyCode;
	}
	public void setPenaltyCode(String penaltyCode) {
		this.penaltyCode = penaltyCode;
	}
	public long getAttendancePenaltyID(){
		return attendancePenaltyID;
	}
	public void setAttendancePenaltyID(long attendancePenaltyID){
		this.attendancePenaltyID = attendancePenaltyID;
	}
	public long getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(long createdBy) {
		this.createdBy = createdBy;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	public Long getModifiedBy() {
		return modifiedBy;
	}
	public void setModifiedBy(Long modifiedBy) {
		this.modifiedBy = modifiedBy;
	}
	public Date getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String descriptin) {
		this.description = descriptin;
	}
	public int getAbsencePeriod() {
		return absencePeriod;
	}
	public void setAbsencePeriod(int absencePeriod) {
		this.absencePeriod = absencePeriod;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
}
